package cn.gson.fengboot.model.dao;

import cn.gson.fengboot.model.pojos.Dneed;
import cn.gson.fengboot.model.pojos.Dscheme;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface DschemeDao extends CrudRepository<Dscheme,Integer> {

    @Query(value = "select d.* from  dscheme d  where d.scheme_theme=?1 and d.scheme_people=?2", nativeQuery = true)
    Dscheme findBySchemeTheme(String schemeTheme, String getbuspeople);
}
